package com.sz.service;

import com.sz.dao.IPlanDao;
import com.sz.pojo.Plan;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PlanSVImpl implements IPlanSV{
    @Resource
    private IPlanDao planDao;

    @Override
    public Plan getPlanById(int id) {
        return planDao.getPlanById(id);
    }

    @Override
    public int modifyThisyear(String planContent, int year) {
        return planDao.modifyThisyear(planContent,year);
    }

    @Override
    public int modifyNextyear(String planContent, int year) {
        return planDao.modifyNextyear(planContent,year);
    }
}
